package com.zx.springcloud.controller;

import com.zx.springcloud.service.PaymentFeignService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZX
 * @date 2021/3/26
 */
@RestController
@RequestMapping("/consumer")
public class OrderController
{

    @Resource
    private PaymentFeignService paymentFeignService;

    @RequestMapping(value = "/time")
    public  String timeTest (){

        System.out.println("1");
        return paymentFeignService.timeOut();
    }
}
